<h1><%= link_to "Schedule", :action => "index" %>
 &rarr; <%=h @schedule.name %>
 </h1>
 
 <!--show game details-->
 <table>
<tr><td>
 <div class="details">
 <dl>
 <dt>When:</dt><dd><%=h @schedule.name %> @ 7:00pm</dd>
 <dt>Where:</dt><dd><%=h @schedule.type %></dd>
 <dt>Opponent:</dt><dd><%=h @schedule.opponent %></dd>
 </dl>
</td><td align="right">
<a href="/images/hockey.gif" target="_blank"><img src = "/images/hockey.gif" height="250" width="350" alt="hockey seating chart"></a>
</td></td>
 </div>
</table>
 <!--if admin show links-->
  <% if admin? %>
  <p class="modify" align="right">
    <%= link_to "edit", :action => "edit", :id => @schedule.id %>  |
    <%= link_to "destroy", { :action => "destroy", :id => @schedule.id },
                            :confirm => 'Are you sure?', 
                            :method  => :delete %>
  </p>
  <% end %>
<!--logged in users can buy tickets-->
<% if logged_in? %>
<a href = "http://www.ticketmaster.com" target="_blank">Buy Tickets</a>
<% end %>
